import { defineConfig } from 'vitepress'

export default defineConfig({
  title: "Unity DDD Guide",
  description: "A comprehensive guide for implementing Domain-Driven Design in Unity3D games",
  themeConfig: {
    nav: [
      { text: 'Home', link: '/' },
      { text: 'Guide', link: '/guide/' },
      { text: 'Basic Series', link: '/basic-series/' },
      { text: 'Appendix', link: '/appendix/' }
    ],
    sidebar: {
      '/': [
        {
          text: 'Guide',
          items: [
            { text: 'Introduction', link: '/guide/' }
          ]
        },
        {
          text: 'Part 1: Fundamentals',
          items: [
            { text: 'Quick Start', link: '/part1/chapter1' },
            { text: 'Match-3 Game Case', link: '/part1/chapter2' },
            { text: 'Farm Management Game', link: '/part1/chapter3' },
            { text: 'Puzzle Game', link: '/part1/chapter4' }
          ]
        },
        {
          text: 'Part 2: Advanced Topics',
          items: [
            { text: 'Performance Optimization', link: '/part2/chapter5' },
            { text: 'Multiplayer Architecture', link: '/part2/chapter6' },
            { text: 'Testing and Debugging', link: '/part2/chapter7' },
            { text: 'Strategic Design', link: '/part2/chapter8' },
            { text: 'Tactical Design Patterns', link: '/part2/chapter9' },
            { text: 'Advanced Domain Modeling', link: '/part2/chapter10' },
            { text: 'DDD Refactoring Guide', link: '/part2/chapter11' },
            { text: 'Best Practices', link: '/part2/chapter12' }
          ]
        },
        {
          text: 'Basic Series',
          items: [
            { text: 'DDD Overview', link: '/basic-series/chapter1-ddd-overview' },
            { text: 'Core Concepts', link: '/basic-series/chapter2-core-concepts' },
            { text: 'Domain Analysis', link: '/basic-series/chapter3-domain-analysis' },
            { text: 'Bounded Context', link: '/basic-series/chapter4-bounded-context' },
            { text: 'Domain Model', link: '/basic-series/chapter5-domain-model' },
            { text: 'Domain Services', link: '/basic-series/chapter6-domain-services' },
            { text: 'Unity Game Practice', link: '/basic-series/chapter7-unity-game-practice' },
            { text: 'Patterns and Practices', link: '/basic-series/chapter8-patterns-and-practices' },
            { text: 'Performance Optimization', link: '/basic-series/chapter9-performance-optimization' },
            { text: 'Architecture Evolution', link: '/basic-series/chapter10-architecture-evolution' },
            { text: 'Library System Case', link: '/basic-series/chapter11-library-system-case' },
            { text: 'Casual Game Practice', link: '/basic-series/chapter12-casual-game-practice' }
          ]
        },
        {
          text: 'Appendices',
          items: [
            { text: 'DDD Patterns Reference', link: '/appendix/patterns' },
            { text: 'Tools Reference', link: '/appendix/tools' },
            { text: 'Case Studies', link: '/appendix/case-studies' }
          ]
        }
      ]
    },
    socialLinks: [
      { icon: 'github', link: 'https://github.com/yourusername/unity-ddd-guide' }
    ],
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright 2024-present'
    }
  }
})
